package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.user.User;
import com.zbkj.common.response.UserSpreadPeopleItemResponse;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户表 Mapper 接口
 +----------------------------------------------------------------------
 */
public interface UserDao extends BaseMapper<User> {

    List<User> findAdminList(Map<String, Object> map);

    List<User> findMerchantList(Map<String, Object> map);

    List<UserSpreadPeopleItemResponse> getSpreadPeopleList(Map<String, Object> map);

    List<User> findBrandList(Map<String, Object> map);
    List<User> findListByTag(Map<String, Object> map);


    User selectOnes(@Param("phone") String phone, @Param("brandId") Integer brandId);

    List<User> findNormalUserList(Map<String, Object> map);
}
